<template>
	<view>
		<button @click="open">打开弹窗</button>
		<uni-popup ref="popup" :mask-click="false">
			<text>Popup</text>
			<button @click="close">关闭</button>
		</uni-popup>
	</view>
</template>
<script>
	export default {
		methods: {
			open() {
				this.$refs.popup.open('center')
			},
			close() {
				this.$refs.popup.close()
			}
		}
	}
</script>